package com.lavegue.service.impl;

import java.util.Date;
import java.util.List;

import com.lavegue.common.BaseService;
import com.lavegue.common.Page;
import com.lavegue.dao.TopUpDao;
import com.lavegue.model.TopUp;
import com.lavegue.service.TopUpService;

public class TopUpServiceImpl extends BaseService<TopUp, Integer, TopUpDao> implements TopUpService{
	/**ljp 20111229
	 * 查询用户的所有充值记录
	 * @param pageNo    当前页数
	 * @param pageSize  每页多少条
	 * @param beginTime 选择开始时间
	 * @param endTime   选择结束时间
	 * @param senderUid  发送者的用户ID
	 * @return
	 */
	public Page<TopUp> findMsgRechargeRecordList(int pageNo, int pageSize,
			Date beginTime, Date endTime, int senderUid) throws Exception {

		Page<TopUp> topupPage = this.getDao().findMsgRechargeRecordList(pageNo, pageSize, beginTime, endTime, senderUid);
		return topupPage;
	}

	public List<TopUp> findByUser(int userid) {
		return this.getDao().findByUser(userid);
	}
	
}
